package com.xrkj.b2c.service.impl.bus;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xrkj.b2c.dao.bus.BusOrderShopMapper;
import com.xrkj.b2c.model.bus.BusOrderShop;
import com.xrkj.b2c.service.bus.BusOrderShopService;

/**
 * 
 * <B>系统名称：</B><BR>
 * <B>模块名称：</B><BR>
 * <B>中文类名：</B>商品订单服务类<BR>
 * <B>概要说明：</B><BR>
 * 
 * @author 赵子靖
 * @since 2018年07月15日
 */
@Service
public class BusOrderShopServiceImpl implements BusOrderShopService {
    @Autowired
    private BusOrderShopMapper orderShopDao;

    @Override
    public int deleteOrderShop(String id) {
        return orderShopDao.deleteByPrimaryKey(id);
    }

    @Override
    public int insertOrderShop(BusOrderShop orderShop) {
        return orderShopDao.insertSelective(orderShop);
    }

    @Override
    public int updateOrderShop(BusOrderShop orderShop) {
        return orderShopDao.updateByPrimaryKeySelective(orderShop);
    }

    @Override
    public BusOrderShop selectByPrimaryKey(String id) {
        return orderShopDao.selectByPrimaryKey(id);
    }

    @Override
    public Integer findOrderShopTotal(Map<String, Object> paramter) {
        return orderShopDao.findOrderShopTotal(paramter);
    }

    @Override
    public List<BusOrderShop> findOrderShopList(Map<String, Object> paramter) {
        return orderShopDao.findOrderShopList(paramter);
    }

}
